package cn.xiqi.cms.hibernate.service;

import java.util.List;

import cn.xiqi.cms.hibernate.DAO.CominfoDAO;
import cn.xiqi.cms.hibernate.beans.Cominfo;

public interface ComService {
	public List<Cominfo> getAll();
	public Cominfo getByID(int id);
	public int add(Cominfo record);
	public boolean delete(Cominfo record);
	public boolean changeName(int id, String name);
	public boolean setRouter(int id, String router);
	public String getRouter(int id);
	public boolean setRank(int id, int rank);
	public void setDao(CominfoDAO dao);
}
